#ifndef JOURNAL_H
#define JOURNAL_H
#include <QMainWindow>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QComboBox>
#include <QDomDocument>
#include <QLabel>
#include <QBoxLayout>
#include "Product.h"
#include "Act.h"

class Journal : public QWidget
{
    Q_OBJECT

private:
    QComboBox *choosePar;
    //QWidget centralWidget;
    QComboBox inputProduct;
    QLineEdit inputWeight;
    QComboBox inputAct;
    QLineEdit inputTime;

    QPushButton addButton;
    //QPushButton addButton;
    QDomDocument docJournal;

    QLabel inputProductLabel;
    QLabel inputWeightLabel;

    QLabel inputActLabel;
    QLabel inputTimeLabel;

    QVBoxLayout *mainLayout;
    Product*product;
    Product*allFood;
    Act* act;
    Act* act1;
    QDate date;

public:
    Journal(QWidget *parent = 0, Bridget* bd=0);
    ~Journal() {};
    void doRecord();
    void doRecordAct();
    void setEating();
    Product *getAllFood();


public slots:
    void onAdd();
    void setPar(int t);


};



#endif // JOURNAL_H
